<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="/stylesheets/style.css" />
    <script type="text/javascript" src="/javascripts/jquery-1.7.min.js"></script>
    <script type="text/javascript" src="/javascripts/common.js"></script>
    <title><%=current_user.name%>的微博</title>
  </head>
  <body>
    <div class="wrap">
      <div class="wrap-inner">
        <%= render :partial=>"/layouts/header"%>
        <div class="container">
          <div class="left-side">
            <div class="attention">
              <p><%= current_user.name%>的关注（<%=my_idols.size()%>）</p>
              <ul>
                <% my_idols.each do |idol| %>
                  <li>
                    <a href="/user/<%=idol.idol.id%>"><img src="<%=idol.idol.image%>" alt="<%=idol.idol.name%>" title="<%=idol.idol.name%>"/><br/><%=idol.idol.name%></a>
                  </li>
                <%end%>
              </ul>
            </div>
            <hr />
            <div class="fans">
              <p><%= current_user.name%>的粉丝（<%=my_fensies.size()%>）</p>
              <ul>
                <% my_fensies.each do |fensi| %>
                  <li><a href="/user/<%=fensi.fensi.id%>"><img src="<%=fensi.fensi.image%>" alt="<%=fensi.fensi.name%>" title="<%=fensi.fensi.name%>"/><br/><%=fensi.fensi.name%></a></li>
                <%end%>
              </ul>
            </div>
          </div>
          <div class="main">
            <%=yield%>
          </div>
        </div>
        <div class="footer">
          Copyright &copy; 2011 WEIBO songhailin@gmail.com
        </div>
      </div>
    </div>
  </body>
</html>